package com.muyu.remote;

import com.muyu.common.core.constant.ServiceNameConstants;
import com.muyu.common.core.domain.Result;
import com.muyu.danmo.domain.DanmoAddresses;
import com.muyu.remote.factory.RemoteAddressesFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        contextId = "remoteProjectInfoService",
        value = ServiceNameConstants.ADDRESS_SERVICE,
        fallbackFactory = RemoteAddressesFactory.class,
        path = "/addresses"
)
public interface RemoteAddressesService {
    @PostMapping("/list")
    public Result list(@RequestBody DanmoAddresses danmoAddresses);

}
